1 00:00:00,860 --> 00:00:05,570 The first thing we need to do is get an MPC to work with a non playing character. 2 00:00:05,600 --> 00:00:12,210 Now I have my game set to players as AR 15, so I'm going to get an AR 15 NPC. 3 00:00:12,290 --> 00:00:17,420 If you want an AR six, you're going to have to go to your settings. 4 00:00:17,930 --> 00:00:19,190 Save off your game. 5 00:00:19,190 --> 00:00:20,720 Let's go ahead and do that. 6 00:00:20,780 --> 00:00:25,820 Let's say MPC work and we'll just go ahead and save that. 7 00:00:26,420 --> 00:00:28,640 Open this up again. 8 00:00:28,910 --> 00:00:35,570 If we go to Avatar, you can switch your avatar that joins the game as AR six or AR 15. 9 00:00:35,600 --> 00:00:37,210 I'm going to keep it at AR 15. 10 00:00:37,230 --> 00:00:42,350 I'm going to do AR 15 rigs If you want an AR six rig or R six or six MPC. 11 00:00:42,380 --> 00:00:46,210 Go ahead and switch it for this step by AR 15 is selected. 12 00:00:46,220 --> 00:00:47,360 So I'll cancel. 13 00:00:47,660 --> 00:00:50,180 I'm going to go to my Avatar tab. 14 00:00:50,390 --> 00:00:57,530 I'm going to go to Rig Builder AR 15 so you can pick any of these I want to do man rig. 15 00:00:58,530 --> 00:01:08,520 Plop him, plop him into the world, and you need to put either clothes or body colors on your NPC because 16 00:01:08,520 --> 00:01:16,890 the roadblocks moderation will ban you If you have NPCs with no clothes or body colours. 17 00:01:16,890 --> 00:01:19,370 It's just a goofy setting they have on there. 18 00:01:19,380 --> 00:01:21,050 Let's go ahead and open this up. 19 00:01:21,060 --> 00:01:26,430 Hit the plus and then I'll do b04 body colors. 20 00:01:26,430 --> 00:01:28,710 Boom, we got our default body colors. 21 00:01:28,710 --> 00:01:31,280 You can change those colors however you want. 22 00:01:31,290 --> 00:01:32,670 Let's change the shirt. 23 00:01:32,670 --> 00:01:35,100 So we have a dark green shirt right here. 24 00:01:35,100 --> 00:01:38,040 The torso color, make it purple. 25 00:01:38,040 --> 00:01:39,450 Just so you know how to do that. 26 00:01:39,450 --> 00:01:42,870 If you don't want it to say dummy, you can just change the name. 27 00:01:42,870 --> 00:01:45,090 We could change it to like Ralph. 28 00:01:46,880 --> 00:01:50,780 That's cool if you don't want that name showing at all. 29 00:01:50,810 --> 00:01:52,850 Let's go to humanoid. 30 00:01:52,880 --> 00:02:00,290 Go to display distance type instead of view or put none. 31 00:02:00,710 --> 00:02:01,580 There you go. 32 00:02:01,580 --> 00:02:03,550 And now you don't have the name above them. 33 00:02:03,560 --> 00:02:05,360 We'll keep it like that for now. 34 00:02:05,750 --> 00:02:08,510 Let's go and start our game. 35 00:02:08,510 --> 00:02:10,010 So hit the play. 36 00:02:10,130 --> 00:02:15,770 We're going to move our animation scripts into our NPC from our player. 37 00:02:15,770 --> 00:02:17,450 So here's my player. 38 00:02:18,140 --> 00:02:22,680 I'm going to go to workspace, not player's workspace. 39 00:02:22,700 --> 00:02:26,660 I'm going to look for my character SIM Tech Nitro one. 40 00:02:26,900 --> 00:02:30,180 I'm going to get my animate script. 41 00:02:30,200 --> 00:02:31,970 There's a bunch of stuff underneath that. 42 00:02:31,970 --> 00:02:32,950 We need all of it. 43 00:02:32,960 --> 00:02:34,760 So I'm going to keep it close. 44 00:02:34,880 --> 00:02:38,450 I'm going to right click and then I'm going to copy. 45 00:02:38,750 --> 00:02:43,220 Right now, I need to turn my game off because nothing is going to save. 46 00:02:43,220 --> 00:02:44,480 The game is running. 47 00:02:44,870 --> 00:02:46,490 Now go to Ralph. 48 00:02:47,460 --> 00:02:50,970 Right click and then paste into. 49 00:02:51,910 --> 00:02:53,080 Look at that. 50 00:02:53,110 --> 00:03:00,840 Now, the downside is I have all this stuff and I have my script, but this is a local script. 51 00:03:00,850 --> 00:03:04,510 It's great for players, not great for NPCs. 52 00:03:04,690 --> 00:03:12,430 Bomber Well, we're going to have to do is go to Ralph, hit the plus, add a regular script and we're 53 00:03:12,430 --> 00:03:14,950 going to call this animate. 54 00:03:17,290 --> 00:03:21,280 Now I'm going to open the animate script from my player. 55 00:03:21,310 --> 00:03:23,300 See that little computer thingy there? 56 00:03:23,320 --> 00:03:24,920 It is a local script. 57 00:03:24,940 --> 00:03:26,590 I'm going to double click on that. 58 00:03:26,590 --> 00:03:29,530 And there's a lot of code in here, like 800 lines. 59 00:03:29,530 --> 00:03:31,060 I'm going to select everything. 60 00:03:31,060 --> 00:03:37,390 I'm going to do a control A to select all control C to copy all. 61 00:03:38,050 --> 00:03:41,970 I'm going to go to my animate script, which is a server script, right? 62 00:03:41,980 --> 00:03:43,240 We just did script. 63 00:03:44,660 --> 00:03:47,210 And I'm going to do a control V to paste it. 64 00:03:47,450 --> 00:03:49,760 Now, I got like 800 lines here. 65 00:03:50,240 --> 00:03:53,180 There's one thing that I need to remove. 66 00:03:53,390 --> 00:03:58,370 I need to look for the binding tool chat hook. 67 00:03:58,370 --> 00:03:58,790 Right. 68 00:03:58,790 --> 00:04:03,550 So that's the emote binding all set up, emote chat hook. 69 00:04:03,560 --> 00:04:04,790 That's what I need. 70 00:04:05,480 --> 00:04:06,800 And I'm just going to go ahead. 71 00:04:06,800 --> 00:04:09,230 It's at about 748, but that may change. 72 00:04:09,230 --> 00:04:13,750 So you could go ahead and do a control F and look for chat, Right. 73 00:04:13,790 --> 00:04:15,140 And then you'll find it. 74 00:04:15,140 --> 00:04:17,450 There's two occurrences in this entire script. 75 00:04:17,840 --> 00:04:20,910 And they're both they're both in that section of code. 76 00:04:20,930 --> 00:04:26,870 I'm going to delete it because we don't want him using the chat box in the anime. 77 00:04:27,530 --> 00:04:31,730 I'm going to show you how to use get NPCs to talk in the chat box, but not now. 78 00:04:32,300 --> 00:04:33,230 I'm going to delete it. 79 00:04:33,230 --> 00:04:33,540 Right? 80 00:04:33,590 --> 00:04:37,760 And it's just going to show some errors in the output window, but that's going to kind of mess up our 81 00:04:37,760 --> 00:04:38,750 troubleshooting. 82 00:04:38,750 --> 00:04:41,990 If you miss this step, it's not going to be a big deal. 83 00:04:42,380 --> 00:04:48,140 Now I'm going to open up my script from my my character, the little computer there. 84 00:04:48,140 --> 00:04:50,840 It's the animate script with a little computer, the local script. 85 00:04:51,290 --> 00:04:52,970 I'm going to select all of these. 86 00:04:52,970 --> 00:04:56,660 I'm going to hit a shift, click on the play mode. 87 00:04:57,200 --> 00:05:01,370 I'm going to drag everything under that animate to my animate. 88 00:05:02,720 --> 00:05:03,670 Nice. 89 00:05:03,680 --> 00:05:06,950 If you don't delete this, it's going to be fine because it's a local script. 90 00:05:06,950 --> 00:05:08,770 It's not going to play on an NPC. 91 00:05:08,780 --> 00:05:11,330 I'm going to delete it though, just to get rid of it. 92 00:05:11,330 --> 00:05:14,090 I don't need extra stuff there that I got to worry about. 93 00:05:14,630 --> 00:05:18,800 Now, Ralph isn't going to move because. 94 00:05:19,910 --> 00:05:24,650 Humanoid route part is anchored for some reason. 95 00:05:24,650 --> 00:05:28,460 They anchor the humanoid root part when you bring it in from the rig builder. 96 00:05:28,910 --> 00:05:29,780 There we go. 97 00:05:29,780 --> 00:05:32,060 We just unanchored the humanoid root part. 98 00:05:32,090 --> 00:05:36,680 Now we can get Ralph to start walking around and doing stuff. 99 00:05:36,680 --> 00:05:39,550 Let's play the game to make sure we have no errors. 100 00:05:39,560 --> 00:05:40,880 Go to view. 101 00:05:41,880 --> 00:05:43,540 Hit the output window. 102 00:05:43,560 --> 00:05:44,850 Hit play. 103 00:05:44,880 --> 00:05:46,170 See what we got? 104 00:05:51,460 --> 00:05:52,540 And there he is. 105 00:05:52,810 --> 00:05:55,270 And he's standing like a regular player. 106 00:05:55,270 --> 00:05:57,580 And you're going to see him do some. 107 00:05:58,670 --> 00:05:59,330 There you go. 108 00:05:59,330 --> 00:06:01,890 Default idol stuff like looking around. 109 00:06:01,910 --> 00:06:08,390 Basically, he has everything that I have and we can make them walk and run and do all kinds of cool 110 00:06:08,390 --> 00:06:08,990 stuff. 111 00:06:08,990 --> 00:06:11,360 So let's go ahead and get started with that.